package com.centersoft.flowable.db.model.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.alibaba.fastjson.util.TypeUtils;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.apache.commons.lang3.time.DateUtils;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.text.ParseException;
import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;
import java.util.Date;

/**
 * 流程模型Entity
 *
 * @author liugaofeng
 * @version 2018-08-02
 */
@Data
@Entity
@Table(name = "act_de_model")
public class FlowModelEntity {
    @Id
    private String id;
    protected String name;
    @Column(name = "model_key")
    protected String modelKey;
    protected String description;
    @JSONField(format = "yyyy-MM-dd HH:mm:ss.SSSSSSS")
    protected LocalDateTime created;
    @JSONField(format = "yyyy-MM-dd HH:mm:ss.SSSSSSS")
    @Column(name = "last_updated")
    protected LocalDateTime lastUpdated;
    @Column(name = "created_by")
    private String createdBy;
    @Column(name = "last_updated_by")
    private String lastUpdatedBy;
    protected int version;
    @Column(name = "model_editor_json")
    protected String modelEditorJson;
    @Column(name = "model_comment")
    protected String modelComment;
    @Column(name = "model_type")
    protected Integer modelType;
    @Column(name = "tenant_id")
    protected String tenantId;
    private byte[] thumbnail;

    private String orgCode;
}


